﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.PersonTypes;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.PersonTypes.EntityMapper.PersonTypes
{

    /// <summary>
    /// 人员类别的数据配置文件
    /// </summary>
    public class PersonTypeCfg : EntityTypeConfiguration<PersonType>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public PersonTypeCfg()
        {
            ToTable("PersonType", AbpZeroTemplateConsts.SchemaName.Basic);


            // 人员姓名
            Property(a => a.Name).HasMaxLength(50);
            // 备注
            Property(a => a.Remarks).HasMaxLength(500);
        }
    }
}